import service from '@/utils/request'
// @Tags LsAfterSaleOrder
// @Summary 创建售后管理表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsAfterSaleOrder true "创建售后管理表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /lsAfterSaleOrder/createLsAfterSaleOrder [post]
export const createLsAfterSaleOrder = (data) => {
  return service({
    url: '/lsAfterSaleOrder/createLsAfterSaleOrder',
    method: 'post',
    data
  })
}

// @Tags LsAfterSaleOrder
// @Summary 删除售后管理表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsAfterSaleOrder true "删除售后管理表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /lsAfterSaleOrder/deleteLsAfterSaleOrder [delete]
export const deleteLsAfterSaleOrder = (params) => {
  return service({
    url: '/lsAfterSaleOrder/deleteLsAfterSaleOrder',
    method: 'delete',
    params
  })
}

// @Tags LsAfterSaleOrder
// @Summary 批量删除售后管理表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除售后管理表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /lsAfterSaleOrder/deleteLsAfterSaleOrder [delete]
export const deleteLsAfterSaleOrderByIds = (params) => {
  return service({
    url: '/lsAfterSaleOrder/deleteLsAfterSaleOrderByIds',
    method: 'delete',
    params
  })
}

// @Tags LsAfterSaleOrder
// @Summary 更新售后管理表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsAfterSaleOrder true "更新售后管理表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /lsAfterSaleOrder/updateLsAfterSaleOrder [put]
export const updateLsAfterSaleOrder = (data) => {
  return service({
    url: '/lsAfterSaleOrder/updateLsAfterSaleOrder',
    method: 'put',
    data
  })
}

// @Tags LsAfterSaleOrder
// @Summary 用id查询售后管理表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.LsAfterSaleOrder true "用id查询售后管理表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /lsAfterSaleOrder/findLsAfterSaleOrder [get]
export const findLsAfterSaleOrder = (params) => {
  return service({
    url: '/lsAfterSaleOrder/findLsAfterSaleOrder',
    method: 'get',
    params
  })
}

// @Tags LsAfterSaleOrder
// @Summary 分页获取售后管理表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取售后管理表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /lsAfterSaleOrder/getLsAfterSaleOrderList [get]
export const getLsAfterSaleOrderList = (params) => {
  return service({
    url: '/lsAfterSaleOrder/getLsAfterSaleOrderList',
    method: 'get',
    params
  })
}

// @Tags LsAfterSaleOrder
// @Summary 不需要鉴权的售后管理表接口
// @Accept application/json
// @Produce application/json
// @Param data query shopReq.LsAfterSaleOrderSearch true "分页获取售后管理表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /lsAfterSaleOrder/getLsAfterSaleOrderPublic [get]
export const getLsAfterSaleOrderPublic = () => {
  return service({
    url: '/lsAfterSaleOrder/getLsAfterSaleOrderPublic',
    method: 'get',
  })
}
